﻿using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;
using System.IO.Ports;
using Microsoft.Kinect;
using System;

namespace enhanced_command_interface
{
    public class Misc
    {

        public static BitmapImage jpegToImageSource(string specialPath)
        {
            BitmapImage bi3 = new BitmapImage();
            bi3.BeginInit();
            bi3.UriSource = new Uri(specialPath, UriKind.Relative);
            bi3.EndInit();
            return bi3;
        }


    }

    public class RessourceImages
    {
        public static string east = "/enhanced_command_interface;component/Properties/DirectionImages/East.jpg";
        public static string west = "/enhanced_command_interface;component/Properties/DirectionImages/West.jpg";
        public static string north = "/enhanced_command_interface;component/Properties/DirectionImages/North.jpg";
        public static string south = "/enhanced_command_interface;component/Properties/DirectionImages/South.jpg";
        public static string northEast = "/enhanced_command_interface;component/Properties/DirectionImages/North-East.jpg";
        public static string northWest = "/enhanced_command_interface;component/Properties/DirectionImages/North-West.jpg";
        public static string southEast = "/enhanced_command_interface;component/Properties/DirectionImages/South-East.jpg";
        public static string southWest = "/enhanced_command_interface;component/Properties/DirectionImages/South-West.jpg";
        public static string stop = "/enhanced_command_interface;component/Properties/DirectionImages/Stop.jpg";
    }
}

